#ifndef  __FST_FILTER_TEXT_EDIT_INCLUDE__
#define  __FST_FILTER_TEXT_EDIT_INCLUDE__

#include <QtWidgets/QTextEdit>
#include <QtGui/qsyntaxhighlighter.h>

class filter_highlighter:public QSyntaxHighlighter
{
public:
    filter_highlighter (QString key_words, QTextEdit * parent ) ; 
protected :
    void highlightBlock(const QString &text) ; 
private:
    QString KeyWords ; 
} ;


class filter_text_edit:public QTextEdit
{
    Q_OBJECT
public:
    filter_text_edit(QWidget * parent = 0);

signals:
    void filter_set() ;
protected:
    void keyPressEvent ( QKeyEvent * e );
};


#endif